<kylin-list-page
    [tableGen]="tableGen"
    [statusSelector]="statusSelector"
    [selectorGen]="selectorGen"
    [btnsGen]="btnsGen"
    [queryReqInfo]="queryReqInfo">
</kylin-list-page>

<ng-template #operationTpl let-data="data" let-funSet="funSet">
    <td class="operation" style="text-align: center;">
        <a *ngIf="data?.code !== 'SUPER_ADMIN';else modifyPlayB" (click)="modifyUser(data, funSet)">修改</a>
        <ng-template #modifyPlayB><a disabled>修改</a></ng-template>

        <nz-divider nzType="vertical"></nz-divider>

        <button nz-popconfirm
                nz-button
                style="padding:0;border:none;background:none;"
                nzTitle="确认删除此角色吗?"
                (nzOnConfirm)="deleteUser(data, funSet)">
            <a *ngIf="data?.code !== 'SUPER_ADMIN';else deletePlayB">删除</a>
            <ng-template #deletePlayB><a disabled>删除</a></ng-template>
        </button>

        <nz-divider nzType="vertical"></nz-divider>

        <a *ngIf="data?.code !== 'SUPER_ADMIN';else verticalPlayB" (click)="resetPassword(data)">分配权限</a>
        <ng-template #verticalPlayB><a disabled>分配权限</a></ng-template>
    </td>
</ng-template>

<kylin-role-detail *ngIf="isVisibleDetails"
                   [(isVisible)]=isVisibleDetails
                   [roleInfo] = selectedRole
                   (processRstChange)="handleProcessRst($event)">
</kylin-role-detail>

